﻿using System;
using System.Runtime.Serialization;

namespace PH.Model.Webs
{
    [DataContract]
    public class PageModel:MBase
    {
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public int ID { get; set; }
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public int CaseID { get; set; }
        [DataMember]
        [Model]
        public string Title { get; set; }
        [DataMember]
        [Model]
        public string Description { get; set; }
        [DataMember]
        [Model]
        public string Thumbnail { get; set; }
        [DataMember]
        [Model]
        public int Pindex { get; set; }
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public System.DateTime CreatedOn { get; set; }
        [DataMember]
        [Model]
        public bool Visible { get; set; }
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public string FriendUrl { get; set; }
        [DataMember]
        [Model]
        public string Abbreviation { get; set; }
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public DateTime? TopTime { get; set; }
        [DataMember]
        [Model]
        public int PageType { get; set; }
    }

    public class PageCollection : ModelCollectionBase<PageModel> { }

    public class PageQuery : QueryBase
    {
        public int CaseID { get; set; }

    }
}
